// 转时间
	function toTime_G(v){
		if(v==null||v==""){
			return "";
		}else{
			 var time = new Date(v)
			    var year = time.getFullYear()
			    var mon = time.getMonth() + 1;
			    var day = time.getDate();  
			    var hour = time.getHours();
			    var min = time.getMinutes();
			    if(mon < 10) mon = "0"+mon
			    if(day < 10) day = "0"+day
			    if(hour < 10) hour = "0"+hour
			    if(min < 10) min = "0"+min
			    return year+"-"+mon+"-"+day + " " + hour + ":" +min
		}
	   
	}
	//获取Url参数
	function getUrl_G(name) {  
	    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");  
	    var r = window.location.search.substr(1).match(reg);  
	    if (r != null) return unescape(r[2]); return null;  
	}
	//限制字数，英文一个字节，中文两个字节
	function strlen(str) {
		var len = 0;
		for(var i = 0; i < str.length; i++) {
			var c = str.charCodeAt(i);
			//单字节加1   
			if((c >= 0x0001 && c <= 0x007e) || (0xff60 <= c && c <= 0xff9f)) {
				len++;
			} else {
				len += 2;
			}
		}
		return len;
	}
	function toNull_G(){
	    $("table td").each(function(){
	        var v = $(this).html()
	        if( v== "" || v == null || v== "null" || v == undefined || v == "undefined"){
	            v = ""
	            $(this).html(v)	
	        }
	    })
	}